#region using

using NHibernate;

using RealEstate.Application;
using RealEstate.Application.Property;

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

#endregion

namespace RealEstate.Website
{
	public partial class Property : System.Web.UI.Page
	{
		#region Page_Load

		protected void Page_Load(object sender, EventArgs e)
		{

		}

		#endregion

		#region Event Handlers

		protected void btnSubmit_Click(object sender, EventArgs e)
		{

			PropertyEntity entity = new PropertyEntity();
			//entity.PropertyID = System.Guid;
			entity.MlsNumber = txtMlsNumber.Text;
			entity.Status = Convert.ToInt16(txtStatus.Text);
			entity.NumRooms = Convert.ToInt32(txtNumRooms.Text);
			entity.TotalSqft = Convert.ToDouble(txtTotalSqft.Text);

			PropertyManager mgr = new PropertyManager();
			mgr.Create(entity);

		}

		#endregion
	}
}
